<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('pay/paytype')}">支付列表</a></li>
        <li class="active"><a href="{:url('pay/setpay')}">支付设置</a></li>
    </ul>
    <div class="row margin-top-20">
        <div class="col-md-6">
            <form class="js-ajax-form"  action="{:url('blog/pay/setpay')}"  method="post">
                <div class="tab-content">
                    <div class="tab-pane active" id="A">
                        <div class="form-group">
                            <label for="input-name">选择支付</label>
                            <div>
                                <select class="form-control" name="pay_name" id="pay_name" style="width: 140px;">
                                    <foreach name="payname" item="payname">
                                    <option value='{$payname.id}'>{$payname.pay_name}</option>
                                    </foreach>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-name"><span class="form-required">*</span>店铺id</label>
                            <div>
                                <input type="text" class="form-control" id="shop_id" name="shop_id" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-name"><span class="form-required">*</span>商户id</label>
                            <div>
                                <input type="text" class="form-control" id="commercial" name="commercial" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-name"><span class="form-required">*</span>支付密匙</label>
                            <div>
                                <input type="text" class="form-control"  id="pay_key" name="pay_key">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="input-name">是否启动</label>
                            <div>
                                <select class="form-control" name="state" id="state" style="width: 140px;">
                                <option value='1'>启动</option>
                                <option value='2'>关闭</option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <button type="submit" id="but" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
                    <a class="btn btn-default" href="{:url('pay/addname')}">{:lang('BACK')}</a>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>